Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for symbol hover #16

Merged
merged 6 commits into from
Jul 1, 2024

Conversation

BrotifyPacha
Copy link
Contributor

@BrotifyPacha BrotifyPacha commented Jul 1, 2024

This pr slightly refactors jump_definition.go, to allow reuse of symbol searching algorithm, and uses it to find symbol for hover generation, thus ensuring that "go to definition" and "hover" would operate on the same symbol.

Hover doc generation is implemented through text/template package, and supports nested messages and enums.

Hover example is shown in a picture below

image

@lasorda lasorda merged commit 024a662 into lasorda:master Jul 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants